﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace 练习9
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("请输入第一个数");
            double Input1 = Convert.ToDouble(Console.ReadLine());
            Console.WriteLine("请输入第二个数");
            double Input2 = Convert.ToDouble(Console.ReadLine());
            Console.WriteLine("请输入第三个数");
            double Input3 = Convert.ToDouble(Console.ReadLine());
            Console.WriteLine("输入数据中最大数为：",maxnum(Input1, Input2, Input3));
            Console.ReadKey();
        }
        static double maxnum(double number1, double number2, double number3)
        {
            double max = number1;
            max = Math.Max(Math.Max(number1, number2), number3);
            return max;
        }
    }
}
